GtkStack: add gtk_stack_get_child_by_name()
authorSteve Frécinaux <code@istique.net>
Mon, 20 Jan 2014 08:32:37 +0000 (09:32 +0100)
committerSteve Frécinaux <code@istique.net>
Tue, 21 Jan 2014 08:35:22 +0000 (09:35 +0100)
commit49bf3cdba8b779d36ad776379921204b2387a02e
treed67a36195acc23c171f4b189e7fea72639f35e61
parente658bfa2de81d427b74a827a35b81c1ec717c0d0
GtkStack: add gtk_stack_get_child_by_name()

This new method allows getting a widget from a GtkStack when we know its
name, and will also return NULL if there is no widget going by that
name.

Usage example would be to check if a child with a given name exists
before calling gtk_stack_set_visible_child_name().

https://bugzilla.gnome.org/show_bug.cgi?id=722588
gtk/gtkstack.c
gtk/gtkstack.h